<h2><?php echo $title ?></h2>
<?php if ($this->session->userdata('message')): ?>
    <div class="message"><?php echo $this->session->userdata('message'); ?></div>
    <?php $this->session->unset_userdata('message') ?>
<?php endif ?>
<table>
<?php echo form_open('account/login') ?>
    <tr>
        <td><input type="text" name="email" value="<?php echo set_value('email') ?>" placeholder="email@email.com" /></td>
        <td><?php echo form_error('email', '<div class="error">', '</div>'); ?></td>
    </tr>
    <tr>
        <td><input type="password" name="password" value="<?php echo set_value('password') ?>" placeholder="password" /></td>
        <td><?php echo form_error('password', '<div class="error">', '</div>'); ?></td>
    </tr>
    <tr>
        <td align="right">
            <input type="submit" value="Submit" />
        </td>
    </tr>
    <tr>
        <td>
            <?php echo anchor('account/register', 'Register'); ?>
        </td>
    </tr>
<?php echo form_close() ?>
</table>